package com.grj.park.boot.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.grj.park.boot.domain.Role;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.validation.Valid;
import java.util.Date;
import java.util.List;

/**
* @author eren
* @description 针对表【role】的数据库操作Service
* @createDate 2024-10-23 10:41:53
*/
public interface RoleService extends IService<Role> {

    Page<Role> fetchRolePage(int currentPage, int pageSize, Role bean, List<Date> during);

    void postRole(@Valid Role role);

    void putRole(@Valid Role role);

    void delRole(Long roleId);

    void batchDelRole(List<Long> roleIds);

    Role fetchRoleById(Long id);
}
